package com.authorization.project.authorization.service;


import com.authorization.project.authorization.domain.Module;
import com.authorization.project.authorization.domain.PackageMoudleMapping;

import java.util.List;

/**
 * 套餐-模块中间Service接口
 * 
 * @author 李晓雷
 * @date 2020-04-23
 */
public interface IPackageMoudleMappingService 
{
    /**
     * 查询套餐-模块中间
     * 
     * @param id 套餐-模块中间ID
     * @return 套餐-模块中间
     */
    public PackageMoudleMapping selectPackageMoudleMappingById(Long id);

    /**
     * 查询套餐-模块中间列表
     * 
     * @param packageMoudleMapping 套餐-模块中间
     * @return 套餐-模块中间集合
     */
    public List<PackageMoudleMapping> selectPackageMoudleMappingList(PackageMoudleMapping packageMoudleMapping);

    /**
     * 新增套餐-模块中间
     * 
     * @param packageMoudleMapping 套餐-模块中间
     * @return 结果
     */
    public int insertPackageMoudleMapping(PackageMoudleMapping packageMoudleMapping);

    /**
     * 修改套餐-模块中间
     * 
     * @param packageMoudleMapping 套餐-模块中间
     * @return 结果
     */
    public int updatePackageMoudleMapping(PackageMoudleMapping packageMoudleMapping);

    /**
     * 批量删除套餐-模块中间
     * 
     * @param ids 需要删除的套餐-模块中间ID
     * @return 结果
     */
    public int deletePackageMoudleMappingByIds(Long[] ids);

    /**
     * 删除套餐-模块中间信息
     * 
     * @param id 套餐-模块中间ID
     * @return 结果
     */
    public int deletePackageMoudleMappingById(Long id);

    /**
     * 批量添加套餐-模块中间信息
     * @param id
     * @param moduleIds
     */
    void bactInsertPackageMoudleMapping(Long id, Long[] moduleIds);

    /**
     * 删除套餐-模块中间信息
     * @param packageId
     */
    void deletePackageMoudleMappingByPackageId(Long packageId);

    /**
     * 根据套餐Id获取模块ID
     * @param packageId
     * @return
     */
    List<Long> selectModuleIdsByPackageId(Long packageId);


}
